auspicious_numbers = []

for num in range(100, 1000):
    digits = [int(digit) for digit in str(num)]

    if digits[0] + 1 == digits[1] and digits[1] + 1 == digits[2]:
        auspicious_numbers.append(num)
    elif digits[0] - 1 == digits[1] and digits[1] - 1 == digits[2]:
        auspicious_numbers.append(num)
    elif digits[0] == digits[1] and digits[1] == digits[2]:
        auspicious_numbers.append(num)
    else:
        continue

print(auspicious_numbers)
